home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / SciAn / src / ScianErrors.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  4KB  |  99 lines

  1. /*ScianErrors.h
  2.   Public routines for ScianErrors.c
  3. */
  4.  
  5. /*Errors*/
  6. #define VARNOTFOUND        1    /*Variable is not found*/
  7. #define VARNOTOBJECT        2    /*Variable is not an object*/
  8. #define VARNOTARRAY        3    /*Variable is not an array*/
  9. #define VARBADRANK        4    /*Rank of an array is bad*/
  10. #define VARBADDIM        5    /*A dimension of an array is bad*/
  11. #define VARNOTPICTURE        6    /*Variable is not a picture*/
  12. #define VARNOTINT        7    /*Variable is not an integer*/
  13. #define VARNOTREAL        8    /*Variable is not a real number*/
  14. #define VARNOTPALETTE        10    /*Var is not a palette*/
  15. #define VARNOTLIST        11    /*Var is not a list*/
  16. #define METHODNOTFOUND        14    /*Method is not found*/
  17. #define VARNOTWINDOW        15    /*Var is not a window*/
  18. #define VARNOTSTRING        16    /*Var is not a string*/
  19. #define CREATEFILEERROR        17    /*Error creating a file*/
  20. #define OPENFILEERROR        18    /*Error opening a file*/
  21. #define VARNOTSYMBOL        23    /*Var is not a symbol*/
  22.  
  23. #define MAXNWARNINGS        10    /*Max # warnings at one time*/
  24.  
  25. #define WT_CAUTION        1    /*Caution warning, mild*/
  26. #define WT_ERROR        2    /*Error warning, requires action*/
  27. #define WT_SEVERE        3    /*Severe warning, may mean something bad*/
  28.  
  29. #define CW_NUMBERERROR        1    /*Syntax error in number*/ 
  30. #define CW_NONINTERROR        2    /*Non-integral number*/
  31. #define CW_INFINITYERROR    3    /*Infinite number*/
  32. #define CW_MISSINGERROR        4    /*Missing data number*/
  33. #define CW_NOTPALETTEERROR    5    /*Not a palette*/
  34. #define CW_READDIRERROR        6    /*Tried to read a dir*/
  35. #define CW_FILEFORMATERROR    7    /*File format error*/
  36. #define CW_NOTOGETHERMODIFY    8    /*Can't modify together*/
  37. #define CW_NOSEPARATEMODIFY    9    /*No separate modify*/
  38. #define CW_CANNOTVISFILE    10    /*Cannot visualize a file*/
  39. #define CW_CANNOTVISERROR    11    /*Cannot visualize an object*/
  40. #define CW_LOOKATERROR        12    /*Lookat point same as location*/
  41. #define CW_NOGEOMETRYERROR    13    /*Can't use geometry here*/
  42. #define CW_CANNOTDROPINMAIN    14    /*Cannot drop in main dataset*/
  43. #define CW_SCRSAVEFAILED    15    /*Screen save failed*/
  44. #define CW_OPENERROR        16    /*Open file error*/
  45. #define CW_CHDIRERROR        17    /*Directory open error*/
  46. #define CW_PATHTOOLONGERROR    18    /*Path is too long*/
  47. #define CW_NOSCREENSAVER    19    /*No screen saver*/
  48. #define CW_SCREENSAVEERROR    20    /*Error while saving screen*/
  49.  
  50. #ifdef PROTO
  51. void WarnUser(int);
  52. #else
  53. void WarnUser();
  54. #endif
  55.  
  56. #ifdef PROTO
  57. void OMErr(void);
  58. void Error(char *, int, char *);
  59. void VarError(char *, int, ObjPtr, NameTyp);
  60. FuncTyp GetMethodSurely(char *, ObjPtr, NameTyp);
  61. ObjPtr GetVarSurely(char *, ObjPtr, NameTyp);
  62. ObjPtr GetObjectVar(char *, ObjPtr, NameTyp);
  63. ObjPtr GetListVar(char *, ObjPtr, NameTyp);
  64. ObjPtr GetPictureVar(char *, ObjPtr, NameTyp);
  65. ObjPtr GetWindowVar(char *, ObjPtr, NameTyp);
  66. ObjPtr GetArrayVar(char *, ObjPtr, NameTyp);
  67. ObjPtr GetIntVar(char *, ObjPtr, NameTyp);
  68. ObjPtr GetSymbolVar(char *, ObjPtr, NameTyp);
  69. ObjPtr GetRealVar(char *, ObjPtr, NameTyp);
  70. ObjPtr GetPaletteVar(char *, ObjPtr, NameTyp);
  71. ObjPtr GetStringVar(char *, ObjPtr, NameTyp);
  72. ObjPtr GetFixedArrayVar(char *, ObjPtr, NameTyp, int, ...);
  73. ObjPtr GetTimedVar(ObjPtr, NameTyp);
  74. Bool GetPredicate(ObjPtr, NameTyp);
  75. char *IDName(NameTyp);
  76. Bool IntVarEql(ObjPtr object, NameTyp var, int value);
  77. #else
  78. void OMErr();
  79. void Error();
  80. void VarError();
  81. FuncTyp GetMethodSurely();
  82. ObjPtr GetVarSurely();
  83. ObjPtr GetObjectVar();
  84. ObjPtr GetListVar();
  85. ObjPtr GetPictureVar();
  86. ObjPtr GetWindowVar();
  87. ObjPtr GetArrayVar();
  88. ObjPtr GetIntVar();
  89. ObjPtr GetSymbolVar();
  90. ObjPtr GetRealVar();
  91. ObjPtr GetFixedArrayVar();
  92. ObjPtr GetPaletteVar();
  93. ObjPtr GetStringVar();
  94. ObjPtr GetTimedVar();
  95. Bool GetPredicate();
  96. char *IDName();
  97. Bool IntVarEql();
  98. #endif
  99.